package com.example.shoppingmall.Utils;

import com.example.shoppingmall.pojo.Order;

import java.util.List;

public class Page {
    private int pageno;
    private int pageSize=6;
    private int pageCount;
    private int pagetotalcount;
    private List<Order> getOrderList;

    public int getPageno() {
        return pageno;
    }

    public void setPageno(int pageno) {
        this.pageno = pageno;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
        if(this.pageCount>0){
            pagetotalcount=this.pageCount%pageSize==0?(this.pageCount/pageSize):(this.pageCount/pageSize+1);
        }
    }

    public int getPagetotalcount() {
        return pagetotalcount;
    }

    public void setPagetotalcount(int pagetotalcount) {
        this.pagetotalcount = pagetotalcount;
    }

    public List<Order> getGetOrderList() {
        return getOrderList;
    }

    public void setGetOrderList(List<Order> getOrderList) {
        this.getOrderList = getOrderList;
    }
}
